package com.mifengkong.greendao.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by jack on 2017/8/26
 */

@Entity
public class UserInfo {

    @Id(autoincrement = true)
    private Long _id;

    @Unique
    @Property(nameInDb = "USER_ID")
    private String user_id;

    @Property(nameInDb = "TOKEN")
    private String token;

    @Unique
    @Property(nameInDb = "PHONE")
    private String phone;

    public UserInfo(String user_id, String phone, String token) {
        this.user_id = user_id;
        this.phone = phone;
        this.token = token;
    }


    public UserInfo(String user_id, String token) {
        this.user_id = user_id;
        this.token = token;
    }


    @Generated(hash = 1420068400)
    public UserInfo(Long _id, String user_id, String token, String phone) {
        this._id = _id;
        this.user_id = user_id;
        this.token = token;
        this.phone = phone;
    }


    @Generated(hash = 1279772520)
    public UserInfo() {
    }


    public Long get_id() {
        return this._id;
    }


    public void set_id(Long _id) {
        this._id = _id;
    }


    public String getUser_id() {
        return this.user_id;
    }


    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }


    public String getToken() {
        return this.token;
    }


    public void setToken(String token) {
        this.token = token;
    }


    public String getPhone() {
        return this.phone;
    }


    public void setPhone(String phone) {
        this.phone = phone;
    }

}
